<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>控制面板</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>styles/control_panel.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>styles/sdmenu.css" />
		<SCRIPT type="text/javascript"
			src="<%=basePath%>javaScripts/jquery-1.5.1.min.js"></SCRIPT>
		<script type="text/javascript"
			src="<%=basePath%>javaScripts/sdmenu.js">
</script>

	</head>

	<body
		style="margin-top: 0px; margin-left: auto; margin-right: auto; text-align: center;">
		<div id="main">
			<div style="height: 32px; border: 0px solid #cccccc">
				<table width="100%" style="font-size: 12px;" border="0">
					<tr>
						<td colspan="2">
							<div style="text-align: left; width: 100%; line-height: 20px"
								class="tip_a">
								当前位置：
								<a href="<%=basePath%>index.jsp">首页</a><span>&nbsp;>>&nbsp;</span><a
									href="<%=basePath%>bbs/index.jsp">论坛</a><span>&nbsp;>>&nbsp;</span>管理员页面
							</div>
						</td>
					</tr>
				</table>
			</div>

			<div id="containe">
				<iframe src="./bbs/admin/welcome.jsp" frameborder="0" width="100%"
					scrolling="no" height="640px;" align="right"
					style="margin-right: 0px; padding-right: 0px" id="title"
					name="title1"></iframe>
			</div>

			<div id="sidebar">
				<div id="sidebar_01">
					<%
						int flag = 0;
					%>

					<div id="my_menu" class="sdmenu">

						<s:iterator value="#session.menuList" var="menuDTO">

							<s:if test="#menuDTO.parentFlag!=0">
								<%
									if (flag == 0) {
								%>
								<div>
									<%
										flag++;
												} else if (flag > 0) {
									%>
								</div>
								<div>
									<%
										}
									%>
									<span> ${menuDTO.menuName} </span>
							</s:if>
							<s:else>
								<a href="<%=basePath%><s:property value="#menuDTO.uri"/>"
									target="title1"> <s:property value="#menuDTO.menuName" /> </a>
							</s:else>

						</s:iterator>
					</div>

				</div>
			</div>
		</div>
		<script type="text/javascript">
	// <![CDATA[
	var myMenu;
	window.onload = function() {
		myMenu = new SDMenu("my_menu");
		myMenu.init();
	};
	// ]]>
</script>
		<div class="clear"></div>
		</div>

	</body>
</html>
